import { SetMetadata } from '@nestjs/common';

export const REQUIRE_PERMISSION: string = 'require-permission';

export const RequirePermission = (...permissions: string[]) =>
  SetMetadata(REQUIRE_PERMISSION, permissions);
